package com.thinvent.recommend.mapper;

import com.thinvent.recommend.entity.TQywxUserInfo;
import com.thinvent.recommend.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TQywxUserInfoMapper extends BaseMapper<String, TQywxUserInfo> {

    /** 根据 WX_USER_ID 精确查单个用户 */
    TQywxUserInfo selectByWxUserId(@Param("wxUserId") String wxUserId);

    /** 查询同部门、排除自己后的所有用户 */
    List<TQywxUserInfo> selectByDeptIdAndExcludeWxUserId(
            @Param("deptId")  Integer deptId,
            @Param("wxUserId") String wxUserId);

}
